package com.edu.demo.service;

import com.edu.demo.entity.Student;
import com.baomidou.mybatisplus.extension.service.IService;
import com.edu.demo.pojo.AjaxResult;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jixuewei
 * @since 2023-01-12
 */
public interface IStudentService extends IService<Student> {

    /**分页查询学生
     *
     * @param index
     * @param size
     * @param result
     * @return
     */
    List<Student> studentList(int index, int size, AjaxResult result);


    /**更新学生信息
     *
     * @param student
     * @return
     */
    int updateStudent(Student student);

    /**新添加一个学生
     *
     * @param student
     * @return
     */
    int insertStudent(Student student);

    /**
     * 按条件查询学生
     * @param student
     * @return
     */
    List<Student> findStudents(Student student,int index,int size,AjaxResult ajaxResult);
}
